package com.clock.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.clock.common.annotation.Excel;
import com.clock.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;


/**
 * 活动信息对象 shop_activity
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
@Entity
public class ShopActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long activityId;

    /** 店铺ID */
    @Excel(name = "店铺ID")
    private Long shopId;

    /** 活动名称 */
    @Excel(name = "活动名称")
    private String activityName;

    /** 活动类型 */
    @Excel(name = "活动类型")
    private String activityCategory;

    /** 活动状态 */
    @Excel(name = "活动状态", readConverterExp = "活动状态（‘0’-进行中，‘1’-已结束’")
    private String activityStatus;

    /** 活动图片 */
    @Excel(name = "活动图片")
    private String activityPic;

    /** 活动描述 */
    @Excel(name = "活动描述")
    private String activityDesc;

    /** 活动内容 */
    @Excel(name = "活动内容")
    private String activityDetails;

    /** 活动开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityStart;

    /** 活动结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "活动结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activityOver;

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setShopId(Long shopId) 
    {
        this.shopId = shopId;
    }

    public Long getShopId() 
    {
        return shopId;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setActivityStatus(String activityStatus) 
    {
        this.activityStatus = activityStatus;
    }

    public String getActivityCategory() {
        return activityCategory;
    }

    public void setActivityCategory(String activityCateGory) {
        this.activityCategory = activityCateGory;
    }

    public String getActivityStatus() 
    {
        return activityStatus;
    }
    public void setActivityPic(String activityPic) 
    {
        this.activityPic = activityPic;
    }

    public String getActivityPic() 
    {
        return activityPic;
    }
    public void setActivityDesc(String activityDesc) 
    {
        this.activityDesc = activityDesc;
    }

    public String getActivityDesc() 
    {
        return activityDesc;
    }
    public void setActivityDetails(String activityDetails) 
    {
        this.activityDetails = activityDetails;
    }

    public String getActivityDetails() 
    {
        return activityDetails;
    }
    public void setActivityStart(Date activityStart) 
    {
        this.activityStart = activityStart;
    }

    public Date getActivityStart() 
    {
        return activityStart;
    }
    public void setActivityOver(Date activityOver) 
    {
        this.activityOver = activityOver;
    }

    public Date getActivityOver() 
    {
        return activityOver;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("shopId", getShopId())
            .append("activityName", getActivityName()).
                append("activityCategory", getActivityCategory())
            .append("activityStatus", getActivityStatus())
            .append("activityPic", getActivityPic())
            .append("activityDesc", getActivityDesc())
            .append("activityDetails", getActivityDetails())
            .append("activityStart", getActivityStart())
            .append("activityOver", getActivityOver())
            .toString();
    }


}
